new Vue({
	el: '#app',
	data: function () {
		return {
			loading:false,
            msg:'',
            errormsg:'',
            errorPopup:false,
            showErrorMsg:false
		}
	},
	created() {
        this.browserVersions()
	},
	mounted(){
	
	},

	methods: {
        browserVersions(){
            var ua = navigator.userAgent; /* navigator.userAgent 浏览器发送的用户代理标题 */
            if (ua.indexOf('Android') > -1 || ua.indexOf('iPhone') > -1 || 
                ua.indexOf('iPad') > -1 || ua.indexOf('Symbian') > -1 ||
                ua.indexOf('BlackBerry') > -1
            ){
                console.log('移动端打开')
                return true;　
            }else{
                console.log('pc打开')
                return false;
            }
        },
        clickpageUrl(type){
        	var url;
			if(type == 'car'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTAxIn0=';

			}else if(type == 'monthCar'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTU1In0=';

			}else if(type == '2hoursCar'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTA5In0=';

			}else if(type == 'hoursCar'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTQzIn0=';

			}else if(type == 'znjc'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMzU0In0=';

			}else if(type == 'old'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyNDM3In0=';

			}else if(type == 'oldDetail'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyNDUzIn0=';

			}else if(type == 'car1'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTYzIn0=';

			}  else if(type == 'car2'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTcxIn0=';

			} else if(type == 'car6'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTY5In0=';

			} else if(type == 'car8'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTU5In0=';

			} else if(type == 'car9'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjMxIn0=';

			} else if(type == 'car10'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE5In0=';

			} else if(type == 'car10'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE5In0=';

			} else if(type == 'car10'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE5In0=';

			} else if(type == 'car10'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE5In0=';

			} else if(type == 'car10'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE5In0=';

			} else if(type == 'car11'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE1In0=';

			} else if(type == 'car12'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMjE3In0=';

			} else if(type == 'car13'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTczIn0=';

			} else if(type == 'car14'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTYxIn0=';

			} else if(type == 'car15'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTcxIn0=';

			} else if(type == 'car16'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTk1In0=';

			} else if(type == 'car17'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTk3In0=';

			} else if(type == 'car18'){
				url = 'https://dpdatax.zjfae.com/shareScreen/eyJzY3JlZW5faWQiOiIyMTc1In0=';

			}
            window.location.href=url
        },
		uuid() {
			let s = [];
			let hexDigits = "0123456789abcdef";
			for (let i = 0; i < 36; i++) {
				s[i] = hexDigits.substr(Math.floor(Math.random() * 0x10), 1);
			}
			s[14] = "4";  // bits 12-15 of the time_hi_and_version field to 0010
			s[19] = hexDigits.substr((s[19] & 0x3) | 0x8, 1);  // bits 6-7 of the clock_seq_hi_and_reserved to 01
			s[8] = s[13] = s[18] = s[23] = "-";
	
			let uuid = s.join("");
			return uuid;
		},
		getDateYYYYMMDDHHMISS(){
			let date = new Date();
			let year = date.getFullYear();
			let month = date.getMonth() + 1;
			let day = date.getDate();
			let hour = date.getHours();
			let minute = date.getMinutes();
			let second = date.getSeconds();
	
			if (month < 10) {
				month = '0' + month;
			}
	
			if (day < 10) {
				day = '0' + day;
			}
	
			if (hour < 10) {
				hour = '0' + hour;
			}
	
			if (minute < 10) {
				minute = '0' + minute;
			}
	
			if (second < 10) {
				second = '0' + second;
			}
	
			return year + "" + month + "" + day + "" + hour + "" + minute + "" + second;
		},
		getUrlParam(name) {
			var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
			var r = window.location.search.substr(1).match(reg); //匹配目标参数
			if (r != null) return unescape(r[2]);
			return null; //返回参数值
	  
		},

	}
});